<template>
  <div class="qunpeople">
    <div class="title2">群成员</div>
    <div class="peoplez">
      <div class="peoplef" v-for="(member, idx) in members" :key="idx">
        <img :src="member.img" alt="头像">
        <p>{{ member.name }}</p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'GroupMembers',
  props: {
    members: {
      type: Array,
      required: true
    }
  }
}
</script>

<style scoped>
.title2 {
  font-size: 1.32rem;
  color: #1c1f31;
  margin-top: 0.96rem;
}
.peoplez {
  display: flex;
  flex-wrap: wrap;
}
.peoplez .peoplef {
  margin-top: 1.14rem;
  width: 20%;
  display: flex;
  flex-direction: column;
}
.peoplez .peoplef img {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 0.5rem;
  margin: 0 auto;
}
.peoplez .peoplef p {
  font-size: 0.89rem;
  color: #aeaeae;
  width: 83%;
  margin: 0 auto;
  margin-top: 0.53rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
</style>
